package com.goldcn.order.model;

public class ErrorEs {
    private Long id;

    private Long objectID;

    private Integer type;

    private Integer reason;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getObjectID() {
        return objectID;
    }

    public void setObjectID(Long objectID) {
        this.objectID = objectID;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Integer getReason() {
        return reason;
    }

    public void setReason(Integer reason) {
        this.reason = reason;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ErrorEs errorEs = (ErrorEs) o;

        if (id != null ? !id.equals(errorEs.id) : errorEs.id != null) return false;
        if (objectID != null ? !objectID.equals(errorEs.objectID) : errorEs.objectID != null) return false;
        if (type != null ? !type.equals(errorEs.type) : errorEs.type != null) return false;
        return !(reason != null ? !reason.equals(errorEs.reason) : errorEs.reason != null);

    }

    @Override
    public int hashCode() {
        int result = id != null ? id.hashCode() : 0;
        result = 31 * result + (objectID != null ? objectID.hashCode() : 0);
        result = 31 * result + (type != null ? type.hashCode() : 0);
        result = 31 * result + (reason != null ? reason.hashCode() : 0);
        return result;
    }
}